/*
 This file is part of WebHUD.
 
 WebHUD is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 any later version.
 
 WebHUD is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with WebHUD.  If not, see <http://www.gnu.org/licenses/>.
 */

#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>

@interface WHController : NSObject {
	IBOutlet NSPanel		*panel;
	IBOutlet WebView		*webview;
	IBOutlet NSTabView		*tabview;
	
	NSMutableDictionary     *urls;
	NSMutableArray			*order;
}

@property(nonatomic, retain) IBOutlet NSPanel		*panel;
@property(nonatomic, retain) IBOutlet WebView		*webview;
@property(nonatomic, retain) IBOutlet NSTabView		*tabview;
@property(nonatomic, retain) NSMutableDictionary	*urls;
@property(nonatomic, retain) NSMutableArray			*order;

+ (WHController*)sharedController;
+ (id)allocWithZone:(NSZone *)zone;

- (void)showHUDForWebView:(WebView *)webview andFrame:(WebFrame *)frame;

- (id)copyWithZone:(NSZone *)zone;
- (id)retain;
- (unsigned)retainCount;
- (void)release;
- (id)autorelease;
+ (NSString *)version;
+ (NSString *)userAgent;
@end
